<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FiltronASP.Areas.Admin.ViewModels.Languages.LanguagesCreateEditDeleteViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edycja wersji językowej
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <% Html.BeginForm(null, null, FormMethod.Post, new {name = "editLanguageForm" }); %>
        <%= Html.HiddenFor(m => Model.LanguageToOperateWith.language_id) %>
        <% if (Model.CurrentLanguage != null) { %>
            <%= Html.HiddenFor(m => Model.CurrentLanguage.language_id) %>
        <% } //if %>            
        <div class="right-page-item">
 		    <div class="right-page-item542">
                <label for="language_name">Nazwa:</label>
                <%= Html.EditorFor(m => Model.LanguageToOperateWith.language_name, "InputText542")%>
                <%= Html.ValidationMessageFor(m => Model.LanguageToOperateWith.language_name)%>
            </div>
            <div class="right-page-sep22"></div>
 			<div class="right-page-item166">
                <label for="language_abbr">Skrót:</label>
                <%= Html.EditorFor(m => Model.LanguageToOperateWith.language_abbr, "InputText166")%>
                <%= Html.ValidationMessageFor(m => Model.LanguageToOperateWith.language_abbr)%>
            </div>                
        </div>                 				           
        <div class="right-page-buttons">
		    <span class="button2" onclick="history.back();">Anuluj</span>
			<span class="button2" onclick="document.forms['editLanguageForm'].submit();">Zapisz</span> 
        </div>
    <% Html.EndForm(); %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    Edycja wersji językowej
</asp:Content>
